
from jkdb.mongo import DBMongo

class jkdb:
    def __init__(self, type, host = "", port = 0):
        self.type = type
        if type == "mongo":
            self.db = DBMongo(host, port)

    def auth(self, user, password, db):
        self.db.auth(user, password, db)

    def query(self, db, coll, cond):
        return self.db.query(db, coll, cond)

    def insert(self, db, coll, data):
        return self.db.insert(db, coll, data)

    def update(self, db, coll, data):
        return ""

    def remove(self, db, coll, cond):
        return ""

    def remove_coll(self, db, coll):
        return ""

    def remove_db(self, db):
        return ""

